package homeWork.Array_Pra;

public class array7 {
    public static void main(String[] args) {
        int[][] a = {{22,66,59},{45,99,80},{88,64,48}};
        int sum = 0;
        for (int i = 0; i < 3; i++) {
            for(int j = 0; j < 3; j++){
                if(i == j)
                {
                    sum += a[i][j];
                    continue;
                }
                else if(i+j == 2) {
                    sum += a[i][j];
                }
            }
        }
        System.out.println(sum);
    }
}
